<?php

namespace addons\xykeep\listener;
use addons\xykeep\service\Store as StoreService;
use app\api\model\xykeep\goods\Order as GoodsOrderModel;
use think\Exception;
use think\Log;

/*
 * 商家钩子
 */
class Store
{
    //订单确认收货
    public function xykeepOrderOverAfter(&$params){
        $orderData = $params['order'];
        $orderType = $params['type'];

        if ($orderType == 'goods') {
            $storeService = new StoreService(null,$orderData['store_id']);
            $storeService->commission($orderData['total_fee'],'order_over',$orderData['id']);
        }



    }
}